<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>轮播组件的基本使用</title>
		<link rel="stylesheet" href="./Bootstrap4.6.1/css/bootstrap.css">
		<script src="./Bootstrap4.6.1/js/jquery.js"></script>
		<script src="./Bootstrap4.6.1/js/bootstrap.bundle.js"></script>
	</head>
	<body>
		<!-- 轮播组件 
			data-interval: 轮播项切换的时间，单位毫秒，默认5000
		-->
		<div id="carouselExampleIndicators" class="carousel slide" data-interval="500" 
		data-ride="carousel">
			<!-- 轮播组件下方的横杠切换按钮 
				data-target: 轮播组件的id
				data-slide-to: 切换时对应的轮播项，编号从0开始 ， --下标
			-->
			<ol class="carousel-indicators">
				<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
				<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
				<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
				<li data-target="#carouselExampleIndicators" data-slide-to="3"></li>
			</ol>
			<!-- 轮播组件的内容区域 -->
			<div class="carousel-inner lunbo-img">
			 <!-- 轮播的每一项 -->
				<div class="carousel-item active">
					<img src="./img/img1.jpg" class="d-block w-100 " alt="...">
				</div>

				<div class="carousel-item">
					<img src="./img/img2.jpg" class="d-block w-100" alt="...">
				</div>
				<div class="carousel-item">
					<img src="./img/img3.jpg" class="d-block w-100" alt="...">
				</div>
				<div class="carousel-item ">
					<img src="./img/img1.jpg" class="d-block w-75" alt="...">
				</div>
			</div>

			<!-- 轮播组件的左侧箭头按钮 -->
			<button class="carousel-control-prev" type="button" data-target="#carouselExampleIndicators"
				data-slide="prev">
				<span class="carousel-control-prev-icon" aria-hidden="true"></span>
				<span class="sr-only">Previous</span>
			</button>
			<!-- 轮播组件的右侧箭头按钮 -->
			<button class="carousel-control-next" type="button" data-target="#carouselExampleIndicators"
				data-slide="next">
				<span class="carousel-control-next-icon" aria-hidden="true"></span>
				<span class="sr-only">Next</span>
			</button>
		</div>

	</body>
</html>
